rectangular coordinate system mechanics